package com.wenwei.sharebox.activity;

import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.TextView;

import com.wenwei.sharebox.R;
import com.wenwei.sharebox.adapter.ShareHistoryAdapter;
import com.wenwei.sharebox.base.BaseActivity;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Administrator on 2017/7/13.
 */
public class ShareHistoryActivity extends BaseActivity {
    @Bind(R.id.base_title)
    TextView baseTitle;
    @Bind(R.id.recycler)
    RecyclerView recycler;

    ShareHistoryAdapter mAdapter;
    @Override
    public int setLayoutResourceId() {
        return R.layout.activity_share_history;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @Override
    protected void initView() {
        super.initView();
        baseTitle.setText("历史记录");

        recycler.setLayoutManager(new LinearLayoutManager(mContext));
        mAdapter = new ShareHistoryAdapter();
        recycler.setAdapter(mAdapter);

    }

    @OnClick(R.id.base_back)
    public void onViewClicked() {
        finish();
    }
}
